package a.f.n;

import a.c.d;
import a.c.e;
import a.c.w;
import a.f.o;

class cb
{
  o a;
  e c;
  
  public cb(o paramo)
  {
    this.a = paramo;
    c();
  }
  
  public e a(e parame)
  {
    d locald = b(parame);
    if (!k.n) {}
    return locald == null ? null : locald.e();
  }
  
  public d b(e parame)
  {
    return parame.m().a();
  }
  
  public boolean c(e parame)
  {
    return this.c == parame;
  }
  
  public e a()
  {
    if (!k.n) {
      if (this.c == null) {
        c();
      }
    }
    return this.c;
  }
  
  public int b()
  {
    if (!k.n) {
      if (this.c == null) {
        return -1;
      }
    }
    return d(this.c);
  }
  
  private int d(e parame)
  {
    boolean bool2 = k.n;
    boolean bool1 = k.m;
    int i = 0;
    w localw = parame.q();
    if (localw.e()) {
      if (bool2) {}
    }
    while (bool2)
    {
      if (bool1) {
        break label70;
      }
      i = Math.max(i, d(localw.d()));
      localw.f();
      if (!bool1) {
        break;
      }
    }
    label70:
    return i + 1;
  }
  
  public boolean e(e parame)
  {
    if (!k.n) {}
    return parame.e() == 0;
  }
  
  private void c()
  {
    boolean bool2 = k.n;
    boolean bool1 = k.m;
    do
    {
      w localw = this.a.v();
      while (!bool1)
      {
        if (!localw.e()) {
          break;
        }
        if (!bool2)
        {
          if (localw.d().d() == 0)
          {
            this.c = localw.d();
            return;
          }
          localw.f();
        }
      }
    } while (bool2);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.n.cb

 * JD-Core Version:    0.7.0.1

 */